package com.learn.english.exception;


import com.learn.english.enums.ResultCode;

/**
 * @author TISNIW
 * @version 1.0
 * @date 2024/7/11 18:10
 * @desc
 */
public class BusinessException extends RuntimeException{
    private final ResultCode r;

    public BusinessException(ResultCode r) {
        super(r.getMsg());
        this.r = r;
    }

    public ResultCode getR() {
        return r;
    }
}
